import requests


def register(i):
    url = 'http://localhost:8088/phpwind/register.php?'
    header = {'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
              'Content-Type': 'application/x-www-form-urlencoded'}
    data = 'forward=&step=2&regname=test' + str(i) + '&regpwd=123456&regpwdrepeat=123456&regemail=test' + str(
        i) + '@test.com&rgpermit=a.txt'
    requests.post(url, data=data, headers=header)


for i in range(1, 51):
    register(i)
